home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_x / xcoral16.zip / XCORAL.H < prev    next >
C/C++ Source or Header  |  1993-01-15  |  2KB  |  51 lines

  1. /*
  2. ** Copyright 1989, 1992 by Lionel Fournigault
  3. **
  4. ** Permission to use, copy, and distribute for non-commercial purposes,
  5. ** is hereby granted without fee, providing that the above copyright
  6. ** notice appear in all copies and that both the copyright notice and this
  7. ** permission notice appear in supporting documentation.
  8. ** The software may be modified for your own purposes, but modified versions
  9. ** may not be distributed.
  10. ** This software is provided "as is" without any expressed or implied warranty.
  11. **
  12. **
  13. */
  14.  
  15. #ifndef  _XCORAL_H_
  16. #define  _XCORAL_H_
  17.  
  18. #include "text.h"
  19. #include "m_key.h"
  20. #include "menus.h"
  21.  
  22. /*
  23.  *    La structure associe a chaque fenetre d'edition.
  24.  */
  25. typedef struct {
  26.     Window        w_frame;    /* La fenetre mere */
  27.     int        width, height;    /* Geometrie */
  28.     Text        *text;        /* La structure Text */
  29.     Buf        *buf;        /* Le buffer */
  30.     ST        *stat;        /* Etat de l'automate */
  31.     MWin        *mwin;        /* La fenetre pour les messages */
  32.     SWin        *scroll;    /* La fenetre de scroll */    
  33.     XYMenu        *menu;        /* Les menus XY */
  34.     XSizeHints    *shints;    /* Les options */
  35. } EdWin;
  36.  
  37. extern Display    *dpy;        /* Le display */
  38. extern EdWin    *edwin;        /* La fenetre courante */
  39. extern EdWin    *TWin [];        /* La table de fenetres */
  40. extern XContext    EdContext;    /* Le contexte courant */
  41.  
  42. extern char     *menu_names [];
  43. extern char     **item_names [];    
  44. extern void        (**func_names []) ();    /* Callback */
  45.  
  46. #define    MAXWIN    16    /* Nb max de fenetres d'editions. 32 ou 64 si on veut */
  47. #define CURRENT_VERSION    "xcoral version 1.6 Beta"
  48.  
  49.  
  50. #endif /* _XCORAL_H_ */
  51.